package com.rjh.base.exception;

public class ExceptionDemo {

    public static void main(String[] args) {
        System.out.println(getNum());
    }

    public static int getNum() {
        try {
            int a = 1 / 0;
            System.out.println("1111111");
            return 1;
        } catch (Exception e) {
            System.out.println("2222222222");
            return 2;
        } finally {
            System.out.println("333333333333");
            return 3;
        }
    }
}
